import { defineStore } from "pinia";

export const userOrderStore = defineStore("order", {
  state: () => ({
    userOrder: [],
    infoRegister:{}
  }),
  getters: {
    doubleCount: (state) => state.counter * 2,
  },
  actions: {
    setUserOrder(item) {
      this.useOrder = item
      // localStorage.setItem('userOrder',this.userOrder)
    },
    setUserInfoRegister(item) {
      this.infoRegister = item
      // localStorage.setItem('infoRegister',this.infoRegister)
    }
  },
});
